<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<style type="text/css">
			body{
				margin: 0;
				padding: 0;
			}
		</style>
	</head>
	<body>
		<!-- 头部信息 -->

		<div style=" margin-top: 100px;">
				<span style="padding-left: 50px;padding-top: 50px;">生成<input type="text" id="fname" style="width: 30px;"></input>以内加减法运算</span>
				<span style="padding-left: 50px;padding-top: 50px;"><input type="text" id="page1" style="width: 30px;"></input>页（每页60题）</span>
				<input type="button" id="bt2" value="生成" onclick="shengcheng()"/>

		</div>
		<img src="1.jpg"  />
		<img src="2.jpg"  />
		<!-- JS脚本 -->
		<script type="text/javascript">

			
			function shengcheng(){
				var count = document.getElementById("fname").value;
				if(count == 0){
					count = 100;	
				}
				var page = document.getElementById("page1").value;
				if(page == 0){
					page = 1;	
				}
				console.log(count)
				console.log(page)
				window.location.href="1.html?page="+page+"&level="+count;
			}
		</script>
	</body>
</html>